home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Scope / Scope Disk #010 (199x)(Scope PD)(US)[WB].zip / Scope Disk #010 (199x)(Scope PD)(US)[WB].adf / REN / ren.doc < prev    next >
Internet Message Format  |  1988-05-18  |  4KB

  1. Date: 16 May 88 22:34:56 GMT
  2.  
  3.  
  4.                                     REN
  5.  
  6.                         An Amiga Font Renaming Utility
  7.  
  8.                      Copyright 1988 By Stephen Vermeulen
  9.  
  10.                               3635 Utah Dr. N.W.
  11.                               Calgary, Alberta,
  12.                               CANADA, T2N 4A6
  13.                               (403) 282-7990
  14.  
  15.                    -----------------------------------------
  16.                    This program may be freely redistributed,
  17.                    so long as this file is distributed with
  18.                    the program and the Copyright notice in
  19.                    the program remains intact.
  20.                    -----------------------------------------
  21.  
  22.  
  23. Introduction:
  24.  
  25.      REN is a CLI based utility program for the Amiga that exploits
  26.      a little understood feature of the Amiga Font System to allow
  27.      the font data files to be placed elsewhere than in the default
  28.      FONTS: directory.  This capability even allows fonts to be spread
  29.      across several disks.  There are several advantages to doing this:
  30.      much needed space is freed up on the boot disk, many more fonts
  31.      may be on line at once, the number of fonts is not restricted by
  32.      the size of a single disk media, and the font directory scans
  33.      faster.
  34.  
  35. Syntax:
  36.  
  37.      The syntax of REN is quite simple:
  38.  
  39.            REN filename.font newpath
  40.  
  41.      where
  42.  
  43.        filename.font   is the COMPLETE path to a ".font" file that needs
  44.                        changing, and
  45.  
  46.        newpath         is the new path to the font data, this may be
  47.                        relative to FONTS: (eg. Garnet) or may be
  48.                        absolute (eg.  Font_1:Garnet).
  49.  
  50. Examples:
  51.  
  52.      To change the working name of the Garnet family of fonts to another
  53.      name (let's use Xyzzy) several things must be done.  The following
  54.      is the complete list of things that must be done:
  55.  
  56.           rename FONTS:Garnet FONTS:Xyzzy
  57.           rename FONTS:Garnet.font FONTS:Xyzzy.font
  58.           ren FONTS:Xyzzy.font Xyzzy
  59.  
  60.      This will just change the name of the Garnet font to be the Xyzzy
  61.      font.  In order to put the data files that describe the characters
  62.      of the Garnet font somewhere else (eg. on a disk named Font_1:)
  63.      the following commands are used:
  64.  
  65.           makedir Font_1:Garnet
  66.           copy FONTS:Garnet Font_1:Garnet all
  67.           delete FONTS:Garnet all
  68.           ren FONTS:Garnet.font Font_1:Garnet
  69.  
  70.      Now, whenever a program tries to open the Garnet font to use it
  71.      the system will search through the FONTS: directory to find
  72.      the Garnet.font file.  It will then look in this file to find out
  73.      where the actual font data is stored.  This data is now on another
  74.      disk named Font_1: (note that the FONTS: directory would normally
  75.      be assigned to a completly different disk, normally the boot disk).
  76.      If the disk Font_1: is not in a disk drive a standard system
  77.      requester will appear asking you to insert the Font_1: disk into
  78.      a drive.
  79.  
  80.      It should now be clear that the ONLY files that must be in the
  81.      FONTS: directory are the filename.font files, since these files
  82.      are used to locate the font data files.  The great benefit this
  83.      provides is of almost entirely removing the limit to the number of
  84.      fonts that may be accessed at any one time that the size of disk
  85.      media imposes.  The filename.font files are very small so that
  86.      even on a crowded boot disk there is usually room for many of these
  87.      if the font data files can be moved elsewhere.
  88.  
  89. More Background:
  90.  
  91.      A note to beginners, the font data files are the files that are
  92.      named by a number which indicates the height of the font.  For
  93.      example doing a:
  94.  
  95.             dir FONTS:
  96.  
  97.      will produce a list of files with the ".font" suffix as well as a
  98.      list of directories.  The directories are where the system usually
  99.      stores the font data files.  To see the various data files for the
  100.      Garnet font do a:
  101.  
  102.             dir FONTS:Garnet
  103.  
  104.      This should list two files: 9 and 16.  The file that is named
  105.      "Garnet.font" in the FONTS: directory tells the system where
  106.      to find the data files (the 9 and 16 files) that contain the
  107.      bit patterns for the Garnet font.  The REN utility works its
  108.      magic by exploiting a feature of the ".font" files that has
  109.      not been used until now.
  110.  
  111.